from django.db import models


class travelSport(models.Model):
    tid = models.IntegerField(verbose_name="携程网id")
    spot_name = models.CharField(max_length=40, verbose_name="景点名称")
    spot_score = models.DecimalField(
        max_digits=5, decimal_places=2, verbose_name="景点评分")
    spot_tags = models.CharField(max_length=100, verbose_name="景点标签")
    spot_url = models.CharField(max_length=300, verbose_name="景点图片")
    spot_brief = models.CharField(max_length=300, verbose_name="景点简介")

    def __str__(self) -> str:
        return f"{self.spot_name} --- poiId:{self.tid}"
